<template>
  <div class="about">
    <el-card>
      <template #header>
        <div class="card-header">
          <span>关于项目</span>
        </div>
      </template>
      <div class="content">
        <h3>项目信息</h3>
        <el-descriptions :column="1" border>
          <el-descriptions-item label="项目名称">Pig Market Frontend</el-descriptions-item>
          <el-descriptions-item label="技术栈">Vue 3 + Vite + Element Plus</el-descriptions-item>
          <el-descriptions-item label="状态管理">Pinia</el-descriptions-item>
          <el-descriptions-item label="路由管理">Vue Router 4</el-descriptions-item>
          <el-descriptions-item label="HTTP客户端">Axios</el-descriptions-item>
        </el-descriptions>
        
        <h3>项目特性</h3>
        <el-row :gutter="20">
          <el-col :span="8">
            <el-card shadow="hover">
              <h4>🚀 现代化开发</h4>
              <p>使用最新的Vue 3 Composition API和Vite构建工具</p>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              <h4>🎨 美观UI</h4>
              <p>集成Element Plus组件库，提供丰富的UI组件</p>
            </el-card>
          </el-col>
          <el-col :span="8">
            <el-card shadow="hover">
              <h4>📦 完整架构</h4>
              <p>包含路由、状态管理、API封装等完整功能</p>
            </el-card>
          </el-col>
        </el-row>
        
        <div class="actions">
          <el-button @click="goBack">返回首页</el-button>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/')
}
</script>

<style scoped lang="scss">
.about {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content {
  h3 {
    color: #409eff;
    margin: 20px 0 15px;
  }
  
  .el-row {
    margin: 20px 0;
  }
  
  .el-card {
    text-align: center;
    
    h4 {
      color: #409eff;
      margin-bottom: 10px;
    }
    
    p {
      color: #666;
      font-size: 14px;
    }
  }
}

.actions {
  text-align: center;
  margin-top: 30px;
}
</style> 